
<p style="font-size:28px;width:100%;margin-top:20%;text-align:center;">活动已结束</p>

<?php
exit;
session_start();
//$cdnUrl='./';
$cdnUrl='http://lin.mei94.com/hisense-card/';
 

include_once './c/config.php';
include 'jssdk.php';
$jssdk = new JSSDK($appId, $secret);
$signPackage = @$jssdk->GetSignPackage();
 
if (isset($_GET['op'])){
    $_SESSION['openid']=$_GET['op'];
}

if (isset($_SESSION['openid'])){
    $openid=$_SESSION['openid'];
}else{
    header('Location: http://hisense.mei94.com/');
    exit;
}

?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>海信沸腾五月</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet" href="<?php echo $cdnUrl; ?>css/swiper.min.css">
<style>
html,body{width:100%;font-size:12px;font-family:Helvetica,Tahoma, Arial, STXihei,Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body{-webkit-overflow-scrolling: touch;overflow-scrolling: touch;overflow-y: scroll;}
body, div{padding:0px;margin:0px auto;max-width:750px;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:36px}.weui-dialog__bd{padding:0 1.6em .86em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
.js_dialog{display:none;}
-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
div,img{-webkit-tap-highlight-color:rgba(0,0,0,0);}
*{-webkit-text-size-adjust: none;}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-indent:4px;color:#787c7f;font-size:12px;z-index:2;border:none;background:transparent;}
.txt::-webkit-input-placeholder{text-align:left;color:#a2a2a2;}
select{position:absolute;color:#787c7f;display:block;background:transparent;border:0px;text-indent:4px;font-size:12px;-webkit-appearance:none;}
.container{position:relative;width:100%;height:auto;overflow:hidden;}
.page{position:absolute;width:100%;height:100%;display:none;top:0;left:0;}
.home, .tan{position:absolute;width:100%;height:100%;top:0;left:0;opacity:0;}
.home-lj{position:absolute;}
.p-b, .thebg, .home-1, .xi-qr{position:absolute;width:100%;top:0;left:0;}
.home-2{position:absolute;width:100%;left:0;}
.xi-qr{opacity:0;height:100%;}
.logo{position:absolute;top:0;z-index:3;}
.p-bg{position:absolute;width:100%;top:0;left:0;height:100%;}
.tan-slide .swiper-slide img{width:100%;height:100%;}
.tan-left, .tan-right{top:46%;z-index:4;}
.home-left, .home-right{z-index:2;}
.t-bg{position:absolute;display:none;width:100%;height:100%;top:0px;left:0px;background-color:#000;opacity:.6;z-index:3;}
.tan{z-index:3;}

.swiper-pagination-bullet {background:#ffffff;opacity:.5;width:6px;height:6px;}
.swiper-pagination-bullet-active{background:#ffffff;opacity:1;}
.swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction{
bottom:0;
}
.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 3px;
}
.hide{display:none;}
</style><script>var _hmt = _hmt || [];(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?a8f6d0b3edf9e96ef73dc00d776cb496";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script></head>
<body>
<div class="container">
    <div class="home">
       <img class="p-bg" src="<?php echo $cdnUrl; ?>images/b.jpg" />
       
	   <div class="thebg">
	      <img class="home-1 simg" src="<?php echo $cdnUrl; ?>images/home-1.png" />
	      <img class="home-2 simg" src="<?php echo $cdnUrl; ?>images/home-2.png" />
	      <div class="home-200 simg"></div>
	      <div class="swiper-container home-slide">
    	      <div class="swiper-wrapper">
    	         <div class="swiper-slide" data-id="1">
				 <img class="home-tu" src="<?php echo $cdnUrl; ?>images/s1.png" />
				 <img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" />
				 </div>
    	         <div class="swiper-slide" data-id="2"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s2.png?v=1" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>     
    	         <div class="swiper-slide" data-id="3"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s3.png?v=1" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>
    	         <div class="swiper-slide" data-id="4"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s4.png?v=1" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>
    	         <div class="swiper-slide" data-id="5"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s5.png?v=1" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>
    	         <div class="swiper-slide" data-id="6"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s6.png?v=1" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>

                <div class="swiper-slide" data-id="7"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s7.png" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>
				<div class="swiper-slide" data-id="8"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s8.png" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>
				<div class="swiper-slide" data-id="9"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s9.png" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>
				<div class="swiper-slide" data-id="10"><img class="home-tu" src="<?php echo $cdnUrl; ?>images/s10.png" /><img class="home-lj" src="<?php echo $cdnUrl; ?>images/s-lj.png?v=2" /></div>

              </div>
              <div class="swiper-pagination"></div>
          </div>
          <img class="home-left simg" src="<?php echo $cdnUrl; ?>images/hleft.png" />
          <img class="home-right simg" src="<?php echo $cdnUrl; ?>images/hright.png" />
	      </div>
	   </div>
	   
	   <div class="juan page">
	       <img class="p-bg" src="<?php echo $cdnUrl; ?>images/b.jpg" />
	       <img class="logo" src="<?php echo $cdnUrl; ?>images/logo.png" />
    	   <div class="thebg">
    	     <img class="p-b" src="<?php echo $cdnUrl; ?>images/juan.png?v=4" />
    	     <div class="juan-cha simg"></div>
    	     <div class="juan-ling simg"></div>
    	     <div class="juan-home simg"></div>
    	   </div>
	   </div>
	   
	   <div class="xi page">
	       <img class="p-bg" src="<?php echo $cdnUrl; ?>images/b.jpg" />
           <img class="logo" src="<?php echo $cdnUrl; ?>images/logo.png" />
    	   <div class="thebg">
    	     <img class="p-b" src="<?php echo $cdnUrl; ?>images/xi-t1.png" />
    	     <img class="xi-b1 simg" src="<?php echo $cdnUrl; ?>images/xi-b1.png?v=1" />
    	     <img class="xi-qr" src="<?php echo $cdnUrl; ?>images/xi-1.jpg" />
    	     <img class="xi-b2 simg" src="<?php echo $cdnUrl; ?>images/xi-b2.png?v=1" />
    	   </div>
	   </div>
	   <div class="t-bg"></div>
	   <div class="tan">
	      <div class="swiper-container tan-slide">
    	      <div class="swiper-wrapper">
    	         <div class="swiper-slide"><img  src="./img/tan-1.png?v=3" />
    	         <img class="tan-close simg" src="<?php echo $cdnUrl; ?>img/close.png" />
    	         <div class="tan-bclose simg"></div>
    	         </div>
    	         <div class="swiper-slide"><img  src="./img/tan-2.png?v=3" />
    	         <img class="tan-close simg" src="<?php echo $cdnUrl; ?>img/close.png" />
    	         <div class="tan-bclose simg"></div>
    	         </div>
    	         <div class="swiper-slide"><img  src="./img/tan-3.png?v=3" />
    	         <img class="tan-close simg" src="<?php echo $cdnUrl; ?>img/close.png" />
    	         <div class="tan-bclose simg"></div>
    	         </div>
    	         <div class="swiper-slide"><img  src="./img/tan-4.png?v=3" />
    	         <img class="tan-close simg" src="<?php echo $cdnUrl; ?>img/close.png" />
    	         <div class="tan-bclose simg"></div>
    	         </div>
              </div>
          </div>
          
          <img class="tan-left simg" src="<?php echo $cdnUrl; ?>img/left.png" />
          <img class="tan-right simg" src="<?php echo $cdnUrl; ?>img/right.png" />
	  </div>
	  
	  <div class="js_dialog">
       <div class="weui-mask"></div>
       <div class="weui-dialog">
                <div class="weui-dialog__bd weui-msg"></div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary weui-btn">知道了</a>
                </div>
        </div>
      </div>
	   

</div>
<script src="http://mat1.gtimg.com/libs/jquery2/2.1.4/jquery2.min.js"></script>
<script src="<?php echo $cdnUrl ?>js/pxloader-images.min.js"></script>
<script src="<?php echo $cdnUrl ?>js/swiper.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script>
_h=h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>750){sWidth=750;}
var _rate=(sWidth/750);
if(h<_rate*1206){h=_rate*1206;}
var _img=['home-1.png'];
var loader = new PxLoader();
for(var i=0; i<_img.length; i++){loader.addImage('<?php echo $cdnUrl; ?>images/'+_img[i]);}
loader.start();
var _mbg=document.getElementById("mbg");
loader.addCompletionListener(function(e){
	   $('.home, .tan').hide().css({"opacity":1});
	   $(".home").show(); 
});
$(function(){
	$('.container').width(sWidth).height(h);
	$('.thebg, .p-b').width(sWidth).height(_rate*1206);
	if(h > _rate*1206){
	   var _cha= (h - _rate*1306)/2;
	   if(_cha > 0){
	      $('.thebg').css({"top":_cha});
	      $('.logo').css({"top":_cha/1.1}); 
	   }   
	}
	wx.config({
        appId: '<?php echo $signPackage["appId"];?>',timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'showMenuItems', 'hideMenuItems','addCard','chooseCard','openCard']
    });
    wx.ready(function () {
    		var _link='http://hisense.mei94.com/?state=share';
    		var _imgUrl='http://hisense.mei94.com/images/64.jpg';
    			wx.onMenuShareTimeline({title: '海信联合9家品牌实力宠你，要沸腾就现在！', link: _link, imgUrl: _imgUrl,success: function () {
    				$.post("api/?c=share", {id:1}, function(data){}, "json");
    			},cancel: function () {
    			}});
    			wx.onMenuShareAppMessage({ title: '@所有人，3亿消费券已发放，快来抢！', desc: '海信联合9家品牌实力宠你，要沸腾就现在！',link: _link,imgUrl: _imgUrl, type: '', dataUrl: '', success: function () {
    				$.post("api/?c=share", {id:1}, function(data){}, "json");
    			},cancel: function () { 
    			}});
    });
	<?php include 'js.php'; ?>
	 
});
</script></body></html>